<?php
namespace Home\Controller;
use Think\Controller;
class NewController extends Controller {
    public function news(){
    	$this->display('News/news');
    }
    public function newsitem(){
    	$newsitems=M('news');
        $newsitem=$newsitems->field('id,time,title,type')->select();
        $this->ajaxReturn(array('newsitem' =>$newsitem));
    }
}
